package com.wuseguang.springcloud.dao.repository;

import com.wuseguang.springcloud.entity.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface StudentRepository extends JpaRepository<Student,Integer> {


    @Query(value = "select * from student where card_number = ?1",nativeQuery = true)
    Student findByCardNumber(String cardNumber);

}
